define(function(require, exports, module) {
	var data = require('js/data.js');
	console.log(data);
	var index = {
		init: function() {
			data.init();
			this.events();
		},
		events: function() {
			var that = this;
			$(".item").on('click', function(event) {
				// event.preventDefault();
				/* Act on the event */
				var e = event || window.event;
				console.log($(e.target).text());
				var res = data.getSecureData();
				console.log("res:", res)
				var imgData = res.data;
				var _html = $('#img-html').html();
				var _html_fn = _.template(_html);
				var result_html = _html_fn({
					imgData: imgData
				});
				$('#img-list').html(result_html);
			});
		}
	}
	module.exports = index;
})